package com.zk.manager.client;

import com.zk.common.entity.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

//@FeignClient(value="zk-user",fallback = UserClientFallback.class)    // 参数: 需要调用的微服务的名字
@FeignClient(value="zk-user",fallbackFactory = UserClientFallbackFactory.class)    // 参数: 需要调用的微服务的名字
public interface UserClient {

	//1. 根据用户id查询用户
	@GetMapping("/user/user/findById/{id}")
	R findById(@PathVariable("id") String id);
}
